package com.huakang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * seeadoctor
 * @author 
 */
public class Seeadoctor implements Serializable {
    /**
     * 就诊id
     */
    private Integer sid;

    /**
     * 病人id
     */
    private Integer pid;

    /**
     * 症状
     */
    private String sympotm;

    /**
     * 是否住院
     */
    private String inhosp;

    /**
     * 解决方案
     */
    private String project;

    /**
     * 就诊时间
     */

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date date;

    private static final long serialVersionUID = 1L;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getSympotm() {
        return sympotm;
    }

    public void setSympotm(String sympotm) {
        this.sympotm = sympotm;
    }

    public String getInhosp() {
        return inhosp;
    }

    public void setInhosp(String inhosp) {
        this.inhosp = inhosp;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Seeadoctor other = (Seeadoctor) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getSympotm() == null ? other.getSympotm() == null : this.getSympotm().equals(other.getSympotm()))
            && (this.getInhosp() == null ? other.getInhosp() == null : this.getInhosp().equals(other.getInhosp()))
            && (this.getProject() == null ? other.getProject() == null : this.getProject().equals(other.getProject()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getSympotm() == null) ? 0 : getSympotm().hashCode());
        result = prime * result + ((getInhosp() == null) ? 0 : getInhosp().hashCode());
        result = prime * result + ((getProject() == null) ? 0 : getProject().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", pid=").append(pid);
        sb.append(", sympotm=").append(sympotm);
        sb.append(", inhosp=").append(inhosp);
        sb.append(", project=").append(project);
        sb.append(", date=").append(date);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}